let userName = "queen";
let userHobby = "football";
let userWork;
let userAge = 20;
let userAge1;
let num1 = 10;
let num2 = 0b1010;
console.log(num2.toString(10));
let buffer;
buffer = true;
let userSex;
userSex = "男";
userSex = "女";
let anyType;
anyType = true;
anyType = "true";
anyType = 100;
anyType = {};
let userScores = 20;
userScores = anyType;
let unType;
unType = 100;
unType = "100";
unType = true;
unType = [1, 2, 3, 4, 5];
console.log(unType);
userScores = unType;
if (typeof unType == 'number') {
    userScores = unType;
}
let phone = 13122222222;
let telphone = "13122222222";
let userPhone;
userPhone = 13122222222;
userPhone = "13122222222";
function fn() {
    console.log("hello");
}
let fn2 = () => { console.log("hi"); };
console.log(fn());
console.log(fn2());
function getEorr() {
    throw new Error();
}
function fn3() {
    while (true) {
    }
}
let arr1 = [];
let arr2 = [1, 2, 3, 4, 5];
let arr3 = ["he", "llo"];
let arr4 = ["abc", 100, 200, "he"];
let arr5 = [100, "abc"];
let arr6 = [true, undefined, null, 100];
let orderType;
orderType = 0;
orderType = 1;
orderType = 2;
orderType = 3;
orderType = 4;
orderType = 5;
var ordersType;
(function (ordersType) {
    ordersType[ordersType["\u5F85\u4ED8\u6B3E"] = 0] = "\u5F85\u4ED8\u6B3E";
    ordersType[ordersType["\u5F85\u53D1\u8D27"] = 1] = "\u5F85\u53D1\u8D27";
    ordersType[ordersType["\u672A\u6536\u8D27"] = 2] = "\u672A\u6536\u8D27";
    ordersType[ordersType["\u4EA4\u6613\u672A\u5B8C\u6210"] = 3] = "\u4EA4\u6613\u672A\u5B8C\u6210";
    ordersType[ordersType["\u5DF2\u5B8C\u6210"] = 4] = "\u5DF2\u5B8C\u6210";
})(ordersType || (ordersType = {}));
let userOrderType;
userOrderType = ordersType.已完成;
console.log("当前订单的状态是：", userOrderType);
console.log("枚举：", ordersType);
var scoreType;
(function (scoreType) {
    scoreType[scoreType["\u4E0D\u53CA\u683C"] = 59.9] = "\u4E0D\u53CA\u683C";
    scoreType[scoreType["\u4E00\u822C"] = 60.9] = "\u4E00\u822C";
    scoreType[scoreType["\u826F\u597D"] = 79.9] = "\u826F\u597D";
    scoreType[scoreType["\u4F18\u79C0"] = 80.9] = "\u4F18\u79C0";
})(scoreType || (scoreType = {}));
let studentScore;
studentScore = scoreType.一般;
console.log(studentScore);
studentScore = scoreType.优秀;
console.log(studentScore);
let obj1 = { id: "1000", "age": 19, "hoby": "basketball" };
let obj2 = { id: "1000", "word": "student" };
let obj3 = { id: "1000", info: {} };
let s1 = "hello";
let s2 = "world";
let userInfo = { name: "king", hoby: "football", id: 1000, age: 18 };
